#Project name must match folder name for includes to work!
project(core)

add_library( ${PROJECT_NAME} SHARED
  tgWorldBulletPhysicsImpl.cpp
    tgBulletSpringCableAnchor.cpp
    tgSpringCable.cpp
    tgBulletSpringCable.cpp
    tgBulletContactSpringCable.cpp
    tgBulletCompressionSpring.cpp
    tgBulletUnidirComprSpr.cpp
    
    tgModel.cpp
    tgSpringCableActuator.cpp
    tgBasicActuator.cpp
    tgKinematicActuator.cpp
    tgCompressionSpringActuator.cpp
    tgUnidirComprSprActuator.cpp
    tgWorld.cpp
    tgSimulation.cpp
    tgSenseable.cpp
    tgBulletRenderer.cpp
    tgSimView.cpp
    tgSimViewGraphics.cpp
    
    tgBulletUtil.cpp
    tgBaseRigid.cpp
    tgRod.cpp
    tgBox.cpp
    tgBoxMoreAnchors.cpp
    tgSphere.cpp
    
    abstractMarker.cpp
)

link_directories(${LIB_DIR})

target_link_libraries(${PROJECT_NAME} terrain tgOpenGLSupport)

subdirs(
    terrain
)
